@extends('common.base-master')

@section('html-title')
    <title>波罗鸡-用户中心</title>
@endsection

@section('html-head')
@endsection

@section('html-body')
    <div class="userinfo-page">
        <div class="info-container avatar">
            <div class="info-name">头像</div>
            <a href="#"><img src="{{route('Api.Image.showPhotoByUserid',['id'=>$userinfo?$userinfo->user_id:0])}}" alt=""></a>
        </div>
        <div class="info-container">
            <div class="info-name">昵称</div>
            <a href="{{route('Home.User.changeInfo')}}?type=nickname">@if($userinfo && !is_null($userinfo->nickname)){{$userinfo->nickname}}@else未设置 @endif</a>
        </div>

        <div class="info-container">
            <div class="info-name">姓名</div>
            <a href="{{route('Home.User.changeInfo')}}?type=realname">@if($userinfo && !is_null($userinfo->realname)){{$userinfo->realname}}@else未设置 @endif</a>
        </div>

        <div class="info-container not-active">
            <div class="info-name">手机</div>
            <a href="#">@if($user){{$user->phone}}@endif</a>
        </div>
        <div class="info-container">
            <div class="info-name">QQ</div>
            <a href="{{route('Home.User.changeInfo')}}?type=qq">@if($userinfo && !is_null($userinfo->qq)){{$userinfo->qq}}@else未设置 @endif</a>
        </div>
        <div class="info-container">
            <div class="info-name">微信</div>
            <a href="{{route('Home.User.changeInfo')}}?type=wechat">@if($userinfo && !is_null($userinfo->wechat)){{$userinfo->wechat}}@else未设置 @endif</a>
        </div>
        <div class="info-container not-active">
            <div class="info-name">邀请码</div>
            <a href="#">@if($userinfo){{$userinfo->invite_code}}@endif</a>
        </div>

        <div class="my-add">
            <a href="{{route('Home.User.myNewAddress')}}">我的地址</a>
        </div>
        <div class="change-password">
            <a href="{{route('Home.Auth.changePassword')}}">修改密码</a>
        </div>
    </div>
    <script>
        $(document).ready(function () {

        })
    </script>
@endsection